package com.situ.water_pay.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.List;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.situ.water_read.pojo.RdRead;
import com.situ.water_user.pojo.UsUser;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author Angel
 * @since 2020-12-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="PyBill对象", description="")
@TableName(value = "py_bill",resultMap = "PyBillMap")
public class PyBill implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "BillNo", type = IdType.ID_WORKER)
    private String BillNo;

    @TableField("ReadID")
    private Integer ReadID;

    @TableField(exist = false)
    private RdRead rdRead;

    @TableField("UserNo")
    private String UserNo;

    @TableField(exist = false)
    private UsUser usUser;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("CreateDate")
    private Date CreateDate;

    @TableField("BillMoney")
    private Double BillMoney;

    @TableField("RealMoney")
    private Double RealMoney;

    @TableField("Balance")
    private Boolean Balance;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("BalanceDate")
    private Date BalanceDate;

    @TableField(exist = false)
    private String invoiceNo;

    @TableField(exist = false)
    private List<PyBilldetail> pyBilldetails;


}
